package leetcode.weekly.week324;

import leetcode.helper.H;

public class Solution4Test extends H {

	public void debug4(Solution4 so) {
		H.compare(H.str2array3("[7]"), so.cycleLengthQueries(5, H.str2array1("[[19,7]]")));
		H.compare(H.str2array3("[7,3,2,6,8,6,3,7]"), so.cycleLengthQueries(5, H.str2array1("[[17,21],[23,5],[15,7],[3,21],[31,9],[5,15],[11,2],[19,7]]")));
	
	}
	
	

	public void debug3(Solution4 so) {
//		H.compare(so, so);
	}

	public void debug2(Solution4 so) {
//		H.compare(so, so);
	}

	public void debug1(Solution4 so) {
//		H.compare(so, so);
	}

	public static void main(String[] args) {
		Solution4Test test = new Solution4Test();
		Solution4 so = new Solution4();
		test.debug1(so);
		test.debug2(so);
		test.debug3(so);
		test.debug4(so);
		System.out.println(log(5));
		System.out.println(log(7));
		System.out.println(log(1));
	}
	
	public static int log(int q) {
		return (int) (Math.log(q) / Math.log(2));
	}

}
